import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

import prismjs from 'vite-plugin-prismjs'

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    proxy: {
      '/static/': {
        target: 'http://127.0.0.1:9999'
      }
    }
  },
  plugins: [
    vue(),
    prismjs({
      languages: ['json', 'python']
    })
  ],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src')
    },
    dedupe: ['vue']
  }
})
